How to execute. sh files under LinuxThe. sh file is a text file, and if you want to do this, you need to use chmod a+x xxx.sh to give executable permissions.Is it a bash script?You can use Touch test.sh #创建test. sh fileVI test.sh #编辑test. sh
Sh File Syntax in CentOSIntroduction:Start with 1The program must start with the following line (must begin with the first line of the file ):#! /Bin/shSymbol #! The parameter used to tell the system that the program is used to execute the file. In
The. Sh file is a shell script file.
Introduction:
Start with 1The program must start with the following line (must begin with the first line of the file ):#! /Bin/shSymbol #! The parameter used to tell the system that the program is used to execute
Introduced:1 OpeningThe program must start with the following line (must be in the first line of the file):#!/bin/shThe symbol #! is used to tell the system that the parameter behind it is the program used to execute the file. In this example we use/
60 required commands in Linux
Linux provides a large number of commands that can effectively perform a large amount of work, such as disk operations, file access, directory operations, process management, and file permission settings. Therefore,
Linux provides a large number of commands that can effectively perform a large amount of work, such as disk operations, file access, directory operations, process management, and file permission settings.
Linux provides a large number of commands
I wrote a quick training material for my wife-the most common command and explanation. Of course, each person's work content is different, and Common commands are also different. This is only my personal experience and the basis of the recipient
1. shell script execution Method
There are two ways to execute shell scripts. One is to generate a new shell and then execute the corresponding shell scripts. The other is to execute the shell in the current shell and no longer enable other
Linux Command background runTurn from the rain in the north, thank you: http://www.cnblogs.com/lwm-1988/archive/2011/08/20/2147299.htmlThere are two ways of doing this:1. Command &: Background run, you shut down the terminal will stop running2.
Linux traditional network configuration command and ip advanced routing command-Linux Enterprise Application-Linux server application information, the following is a detailed description. Knowing how to configure network commands is a must-have
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.